<?php

//押金表
class company extends spModel
{
	public $pk = "id"; // 数据表的主键
    public $table = "company"; // 数据表的名称

	function create($row) {
		$mUserLog = spClass('userlog');
		$logArray	  = array(
							'uid' => $row['uid'],
							'type'=> 'foundcompany',
							'content' => 'Found Company '.$row['name'],
							'dateline'=> time()
						);
		$lastLogId    = $mUserLog->create($logArray);
		return parent::create($row);
	}
}